<template>
  <div class="d-grid gap-4">
    <CardPanel>
      <div class="d-flex gap-2">
        <el-button type="danger" :icon="Delete">删除</el-button>
        <el-input aria-placeholder="请输入搜索关键字" style="width: 200px;"></el-input>
        <el-button type="primary" :icon="Search">搜索</el-button>
        <el-button type="primary" :icon="Plus">新增</el-button>
      </div>


    </CardPanel>
    <CardPanel>
      <el-table :data="tableData" style="width: 100%" border>
        <el-table-column type="selection" width="55" align="center" />
        <el-table-column type="index" width="60" align="center" label="序号" sortable />
        <el-table-column prop="name" label="专业名称" min-width="220" sortable />
        <el-table-column prop="department" label="所属学院" min-width="220" sortable />
        <el-table-column label="操作" width="160" align="center">
          <template #default="{ row }">
            <el-button type="primary" size="small" :icon="EditPen">编辑</el-button>
            <el-button type="danger" size="small" :icon="Delete">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
    </CardPanel>
    <CardPanel>
      <template>
        <el-pagination background layout="prev, pager, next" :total="1000" class="mt-4" />
      </template>
    </CardPanel>
  </div>
</template>
<script lang="ts" setup>
import CardPanel from '@/components/CardPanel.vue';
import { Delete, EditPen, Plus, Search } from '@element-plus/icons-vue';


</script>

<style lang="scss" scoped></style>
